package com.neuedu.spring;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.stereotype.Component;

public class UserController {

    @Autowired  //从容器中获取一个 bean,注入到userServie
    private UserService userService ;

    public void save(){
        System.out.println("UserController.save");
        userService.save();
    }



}
